from django.db import models
from apps.common.base.models import BaseModel
from apps.system.dictType.models import DictType

class Dict(BaseModel):

    dictType=models.ForeignKey(DictType, related_name="dictType_dict", verbose_name='字典类型', on_delete=models.SET_NULL, null=True, blank=True, db_constraint=False)
    value = models.CharField("值", max_length=200, blank=True, null=True, default='')
    label = models.CharField("标签", max_length=200, blank=True, null=True, default='')

    class Meta:
        verbose_name = 'Dict'
        verbose_name_plural = verbose_name